package gdt.entity;

import gdt.entity.Holiday;
import java.io.Serializable;
import javax.persistence.*;
import static javax.persistence.FetchType.LAZY;

/**
 * Entity that represents a holiday assigned to all
 * the members of a group
 */

@Entity
public class GroupHoliday extends Holiday implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@ManyToOne(fetch=LAZY)
	private Group assignedGroup;

	
	public GroupHoliday() {
		super();
	}   
	
	// ********************** Accessor Methods ********************** //
	
	public Group getAssignedGroup() {
		return this.assignedGroup;
	}

	public void setAssignedGroup(Group assignedGroup) {
		this.assignedGroup = assignedGroup;
	}
   
}
